package cn.zzuisa.news.enums;
/**
 * @ClassName:     CommonEnums.java
 * @Description:   TODO 
 * @author        	zzuisa
 * @version         V1.0  
 * @Date           2018年9月4日 下午2:19:12 
 */
public enum CommonEnums {
    SUCCESS(0, "操作成功🎉"),
    PARAM_ERROR(1, "参数不正确"),
    USER_NOT_LOGIN(2, "您未登录"),
    USERNAME_HAS_EXIST(3, "用戶名已存在"),
    LOGIN_FAIL(25, "登录失败，账号或密码不正确"),
    LOGOUT_SUCCESS(25, "登出成功"),
    USER_LOCKED(26, "由于您的账号涉嫌传播不良信息，已被管理员冻结！"),
    
    ;

    private Integer code;
    private String message;

    
    public Integer getCode() {
		return code;
	}


	public void setCode(Integer code) {
		this.code = code;
	}


	public String getMessage() {
		return message;
	}


	public void setMessage(String message) {
		this.message = message;
	}


	CommonEnums(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
	
	
}
